package com.xyf.sys.service;

import com.wechat.pay.java.service.profitsharing.model.AddReceiverResponse;
import com.xyf.sys.domain.OrderProfitsharingReceiver;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author R-H
 * @Date 2024/7/151024
 * @Description
 */
public interface IOrderProfitsharingReceiverService {

    /**
     * 查询商户分账接收方信息列表
     *
     * @param orderId 订单id
     * @return 商户分账接收方信息集合
     */
    List<OrderProfitsharingReceiver> getProfitsharingReceiverList(String orderId);

    AddReceiverResponse addProfitsharingReceiver(String type, String account, String name, String relationType, String customRelation, BigDecimal ratio, String orderId);

    void save(OrderProfitsharingReceiver receiver);
}
